/**
 * 
 */
package com.effectivsocial.service.api;

import java.util.List;

import org.springframework.security.core.userdetails.UserDetailsService;

import com.effectivsocial.domain.Company;
import com.effectivsocial.domain.Role;
import com.effectivsocial.domain.User;

/**
 * @author Dhrubo
 *
 */
public interface UserService extends BusinessService<User, String>, UserDetailsService{
	
	User findByEmail(String email);
	List<User> findByRole(Role role);
	void save(User user, Role role);
	void save(User user, Company company);
	void unlock(String email);
}
